package com.runfast.paotui.service;

import com.runfast.common.service.IService;
import com.runfast.paotui.dao.model.RunfastShopper;
import com.runfast.paotui.dao.model.RunfastShopperExample;
import com.runfast.waimai.util.PageBean;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RunfastShopperService extends IService<RunfastShopper, Integer, RunfastShopperExample> {
 void addtoken(RunfastShopper shopper);
    List<Map<String,Object>> findbyGoods();

   RunfastShopper findByUserName(String userName);

    void update(RunfastShopper shopper);

    List<RunfastShopper> findByAll();

   RunfastShopper findByNumeber(String munber);

    void updateNumber(RunfastShopper shopper);

    RunfastShopper get(Integer id);

    List<Map<String,Object>> countShopperIncome(String key, Date startTime, Date endTime, Integer page, Integer pageSize, Integer tAccounts);

    Integer getShopperCount();

    PageBean<RunfastShopper> getPageBean(int pageSize, int page, RunfastShopper t, List<Integer> agentIds);

    List<RunfastShopper> findByCreditLevelid(Integer creditLevelid);

    void updatepassword(RunfastShopper shopper);

    void updateAlias(RunfastShopper shopper);
    void  updateUserName(RunfastShopper shopper);
    List<RunfastShopper> findBuAgentId(Integer agentId, Integer teamid);

    List<RunfastShopper> findAgentidAndWordtypeAndWorkingAndName(Integer agentid,Integer work_Type,Integer working, String name);

    List<RunfastShopper> findNameAndAgerenAndTime(Integer agentid,String name,Date createtime1,Date createtime2);
    List<RunfastShopper>findToday(Integer id,Date createtime1,Date createtime2);
    void updatelatitude(RunfastShopper runfastShopper);
}